#ifndef SEARCHSTU_H
#define SEARCHSTU_H

#include <QDialog>
#include <QList>
#include "student.h"
#include <QFile>
#include <QTextStream>
#include <QDebug>
#include <QStandardItemModel>

namespace Ui {
class SearchStu;
}

class SearchStu : public QDialog
{
    Q_OBJECT

public:
    explicit SearchStu(QWidget *parent = nullptr);

    int  getStuFromFile(QList<Student> &stu_list);
    void display(QList<Student> &stu_list);

    ~SearchStu();

private slots:
    void on_btn_search_clicked();

private:
    Ui::SearchStu *ui;
    QStandardItemModel *model;
};

#endif // SEARCHSTU_H
